//
// Created by francklinson on 2021/10/21 AT 15:11.
//
#include <iostream>
#include <vector>
#include <unordered_map>
#include <unordered_set>
#include <queue>
#include <algorithm>
#include <functional>
#include <climits>
#include <string>

using namespace std;

class Solution {
public:
    int finalValueAfterOperations(vector<string> &operations) {
        int ans = 0;
        for (auto &x: operations) {
            if (x[1] == '-')
                --ans;
            else
                ++ans;
        }
        return ans;
    }
};

int main() {
    vector<string> operations{"--X", "X++", "X++"};
    Solution solution;
    cout << solution.finalValueAfterOperations(operations) << endl;
    return 0;
}

